package com.book.service;


import com.book.dao.readerTypeDao;
import com.book.po.ReaderType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class readerTypeService {
    @Autowired
    private readerTypeDao readerTypeDao;

    public List<ReaderType> readerType_select(){
        return readerTypeDao.readerType_select();
    };
    public String readerType_update(ReaderType readerType){
        if(readerTypeDao.readerType_update(readerType)!=0){
            return "修改成功";
        }else {
            return "修改失败";
        }
    };
    public String readerType_insert(ReaderType readerType){
        if(readerTypeDao.readerType_insert(readerType)!=0){
            return "添加成功";
        }else {
            return "添加失败";
        }
    };


}
